package com.slkj.shilixiaoyuanapp.entity;

import android.graphics.Color;

import java.util.ArrayList;

/**
 * Created  on 2018-07-23
 *
 * @author 唐开阔
 * @describe 公章历史记录
 */
public class ToolCommonHistoryEntity {
    private boolean isCheck = false;//是否选中
    /**
     * applyId : 12
     * intime : 2018-07-28
     * auditUserId : 33
     * id : 25
     * state : 1
     * title : 讨论学术问题
     * type : 7
     */

    private int applyId;
    private String intime;
    private int auditId;
    private int id;
    private int state;//0 待审批 ,1 未通过 ,2 已通过
    private String title;
    private int type;
    private ArrayList<PeopleEntity> auditors;
    private boolean urge;

    public boolean isUrge() {
        return urge;
    }

    public void setUrge(boolean urge) {
        this.urge = urge;
    }

    public ArrayList<PeopleEntity> getAuditor() {
        return auditors;
    }

    public void setAuditor(ArrayList<PeopleEntity> auditor) {
        this.auditors = auditor;
    }

    public ToolCommonHistoryEntity(int state, String title) {
        this.state = state;
        this.title = title;
    }
    public ToolCommonHistoryEntity() {

    }
    public boolean isCheck() {
        return isCheck;
    }

    public void setCheck(boolean check) {
        isCheck = check;
    }

    public int getApplyId() {
        return applyId;
    }

    public void setApplyId(int applyId) {
        this.applyId = applyId;
    }

    public String getIntime() {
        return intime;
    }

    public void setIntime(String intime) {
        this.intime = intime;
    }

    public int getAuditUserId() {
        return auditId;
    }

    public void setAuditUserId(int auditUserId) {
        this.auditId = auditUserId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getTypeColor(){
        int color = 0;
        switch (state){
            case  0:
                color = Color.parseColor("#999999");
                break;
            case  1:
                color = Color.parseColor("#FF6953");

                break;
            case  2:
                color = Color.parseColor("#0087FC");

                break;
        }
        return color;
    }
    public String getTypeText(){
        String text ="";
        switch (state){
            case  0:
                text = "待审批";
                break;
            case  1:
                text = "未通过";

                break;
            case  2:
                text = "已通过";

                break;
        }
        return text;
    }
}
